﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Yglab.Models;

namespace Yglab.MyLib
{
    public class MyCronjob
    {
        private YgContext conn = new YgContext();

        public DateTime getTime()
        {
            MySettings m = conn.MySettings.FirstOrDefault();
            return DateTime.Now.AddDays(m.DayNo);
        }
        public void run()
        {
            run1(); run2(); run3(); run4();
        }
        public void run1()
        {
        }
        public void run2()
        {
        }
        public void run3()
        {

        }
        public void run4()
        {
        }
    }
}